#ifndef __SG90_H__
#define __SG90_H__

// #define PWM_RECYCLE_PIN  16     //可回收垃圾的PWM信号线引脚
// #define PWM_KITCHEN_PIN  17     //厨余垃圾的PWM信号线引脚
// #define PWM_HARMFULE_PIN  18    //有害垃圾的PWM信号线引脚
// #define PWM_OTHER_PIN  19       //其他垃圾的PWM信号线引脚

typedef enum{
    PWM_RECYCLE_PIN = 16,       //可回收垃圾的PWM信号线引脚
    PWM_KITCHEN_PIN,            //厨余垃圾的PWM信号线引脚
    PWM_HARMFULE_PIN,           //有害垃圾的PWM信号线引脚
    PWM_OTHER_PIN               //其他垃圾的PWM信号线引脚
}PWM_PIN_E;

#define STATE_CLOSE  0
#define STATE_OPEN   1

void sg90_init(void);
int sg90_change_lid_stat(uint8_t garbage_num, bool stat);

#endif